package com.tanhua.dubbo.api;


import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;
import java.util.Map;

public interface CommentsApi {

    List<Comment> find(String movementId, CommentType comment, Integer page, Integer pagesize);

    Integer save(Comment commentrusult);


    boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);

    //Integer commentslike(String id);

    //Integer commentsdislike(String id);

    Boolean likeCount(Comment comment);

    Map<String,Comment> commentslike(Comment comment);

    //Boolean dislikeCount(Comment comment);

    Map<String,Comment>  commentsdislike(Comment comment);

    List<Comment> findPublisUserId(Long userId, Integer page, Integer pagesize, int type);


    // List<Comment> findPublisUserId(Long userId, Integer page, Integer pagesize,CommentType like);
}
